//
//  YTDHHeaderView.m
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/7/18.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "YTDHHeaderView.h"
@interface YTDHHeaderView ()
@property (weak, nonatomic) IBOutlet UILabel *headerTitleLabel;

@end
@implementation YTDHHeaderView

// 实例化方法
+ (instancetype)headerViewWithTitle:(NSString *)title
{
    UINib *nib = [UINib nibWithNibName:@"YTDHHeaderView" bundle:nil];
    YTDHHeaderView *view = [nib instantiateWithOwner:nil options:nil][0];
    view.headerTitleLabel.text = title;
    return view;
}
@end
